home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / portable / idlok.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.6 KB  |  55 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    idlok
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_idlok = "$Header: C:\CURSES\portable\RCS\idlok.c 2.1 1993/06/18 20:20:06 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   idlok()    - Enable use of Insert/Delete Line
  15.  
  16.   X/Open Description:
  17.      If enabeld (bf is TRUE), curses will use the insert/delete line
  18.      feature of terminals so equipped.  If disabled, curses will not
  19.      use this feature.  (The insert/delete character feature is always
  20.      used.)  This option should be enabled only if the application
  21.      needs insert/delete line; for example, for a screen editor.  It
  22.      is disabled by default because insert/delete line tends to be
  23.      visually annoying when used in applications where it isn't really
  24.      needed.  If insert/delete line cannot be used, curses will redraw
  25.      the changed portions of all lines.
  26.  
  27.   PDCurses Description:
  28.      This is provided for portability.  This may have some value for
  29.      the FLEXOS platform, but there is no code in PDCurses at this
  30.      time (910725) that takes advantage of this.
  31.  
  32.   X/Open Return Value:
  33.      The idlok() function returns OK on success and ERR on error.
  34.  
  35.   X/Open Errors:
  36.      No errors are defined for this function.
  37.  
  38.   Portability:
  39.      PDCurses    int idlok( WINDOW* win, bool bf );
  40.      X/Open Dec '88    int idlok( WINDOW* win, bool bf );
  41.      BSD Curses    
  42.      SYS V Curses    
  43.  
  44. **man-end**********************************************************************/
  45.  
  46. int    idlok( WINDOW *win, bool bf )
  47. {
  48. #ifdef PDCDEBUG
  49.     if (trace_on) PDC_debug("idlok() - called\n");
  50. #endif
  51.  
  52.     win->_use_idl = bf;
  53.     return( OK );
  54. }
  55.